/*
 * Class.h
 *
 *  Created on: 01/06/2011
 *      Author: dela
 */

#ifndef CLASS_H_
#define CLASS_H_

#include "VirtualTraining.h"
#include "Course.h"

class Course;

class Class : public VirtualTraining {
private:
	unsigned long courseId;
	bool availableOffline;
	std::list<int> studentsEnrolled;
	std::list<int> studentsBanned;

public:
	Class() {};

	//Contructor a partir de buffer:
	Class( char *buffer );

	//Genera un buffer con la info de la entidad.
	char* toBuffer( int *size );

	unsigned long getCourseId() {return courseId;};
	void setCourseId(unsigned long courseId) {this->courseId = courseId;};

	bool getAvailableOffline() {return availableOffline;};
	void setAvailableOffline(bool ao) {availableOffline = ao;};
};

#endif /* CLASS_H_ */
